package com.to_door_recycle.common.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ExceptionStatusEnum {

    //  ======   0 正常 1 异常  ======
    NOMAL(0, "一切正常"),
    UNNORMAL(1, "响应异常"),


    //  ======   [1000, 2000) 认证异常   ======
    AUTH_EXCEPTION(1000, "认证异常"),
    UNLOGIN_EXCEPTION(1001, "用户未登录"),
    USERNAME_OR_PASSWORD_EXCEPTION(1002, "用户名或密码异常"),

    //  ======   [2000, 3000) 业务异常   ======
    BIZ_EXCEPTION(2000, "业务异常"),


    //  ======   [3000, 4000) 数据异常  ======
    DATA_EXCEPTION(3000, "数据异常"),
    PARAM_EXCEPTION(3001, "参数异常"),
    REQUEST_DATA_EXCEPTION(3002, "请求数据异常"),




    ;

    private Integer code;
    private String message;
}
